package com.beamfield.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class HealthExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public HealthExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andEcodeIsNull() {
            addCriterion("ecode is null");
            return (Criteria) this;
        }

        public Criteria andEcodeIsNotNull() {
            addCriterion("ecode is not null");
            return (Criteria) this;
        }

        public Criteria andEcodeEqualTo(String value) {
            addCriterion("ecode =", value, "ecode");
            return (Criteria) this;
        }

        public Criteria andEcodeNotEqualTo(String value) {
            addCriterion("ecode <>", value, "ecode");
            return (Criteria) this;
        }

        public Criteria andEcodeGreaterThan(String value) {
            addCriterion("ecode >", value, "ecode");
            return (Criteria) this;
        }

        public Criteria andEcodeGreaterThanOrEqualTo(String value) {
            addCriterion("ecode >=", value, "ecode");
            return (Criteria) this;
        }

        public Criteria andEcodeLessThan(String value) {
            addCriterion("ecode <", value, "ecode");
            return (Criteria) this;
        }

        public Criteria andEcodeLessThanOrEqualTo(String value) {
            addCriterion("ecode <=", value, "ecode");
            return (Criteria) this;
        }

        public Criteria andEcodeLike(String value) {
            addCriterion("ecode like", value, "ecode");
            return (Criteria) this;
        }

        public Criteria andEcodeNotLike(String value) {
            addCriterion("ecode not like", value, "ecode");
            return (Criteria) this;
        }

        public Criteria andEcodeIn(List<String> values) {
            addCriterion("ecode in", values, "ecode");
            return (Criteria) this;
        }

        public Criteria andEcodeNotIn(List<String> values) {
            addCriterion("ecode not in", values, "ecode");
            return (Criteria) this;
        }

        public Criteria andEcodeBetween(String value1, String value2) {
            addCriterion("ecode between", value1, value2, "ecode");
            return (Criteria) this;
        }

        public Criteria andEcodeNotBetween(String value1, String value2) {
            addCriterion("ecode not between", value1, value2, "ecode");
            return (Criteria) this;
        }

        public Criteria andStatureIsNull() {
            addCriterion("stature is null");
            return (Criteria) this;
        }

        public Criteria andStatureIsNotNull() {
            addCriterion("stature is not null");
            return (Criteria) this;
        }

        public Criteria andStatureEqualTo(String value) {
            addCriterion("stature =", value, "stature");
            return (Criteria) this;
        }

        public Criteria andStatureNotEqualTo(String value) {
            addCriterion("stature <>", value, "stature");
            return (Criteria) this;
        }

        public Criteria andStatureGreaterThan(String value) {
            addCriterion("stature >", value, "stature");
            return (Criteria) this;
        }

        public Criteria andStatureGreaterThanOrEqualTo(String value) {
            addCriterion("stature >=", value, "stature");
            return (Criteria) this;
        }

        public Criteria andStatureLessThan(String value) {
            addCriterion("stature <", value, "stature");
            return (Criteria) this;
        }

        public Criteria andStatureLessThanOrEqualTo(String value) {
            addCriterion("stature <=", value, "stature");
            return (Criteria) this;
        }

        public Criteria andStatureLike(String value) {
            addCriterion("stature like", value, "stature");
            return (Criteria) this;
        }

        public Criteria andStatureNotLike(String value) {
            addCriterion("stature not like", value, "stature");
            return (Criteria) this;
        }

        public Criteria andStatureIn(List<String> values) {
            addCriterion("stature in", values, "stature");
            return (Criteria) this;
        }

        public Criteria andStatureNotIn(List<String> values) {
            addCriterion("stature not in", values, "stature");
            return (Criteria) this;
        }

        public Criteria andStatureBetween(String value1, String value2) {
            addCriterion("stature between", value1, value2, "stature");
            return (Criteria) this;
        }

        public Criteria andStatureNotBetween(String value1, String value2) {
            addCriterion("stature not between", value1, value2, "stature");
            return (Criteria) this;
        }

        public Criteria andLeft_visionIsNull() {
            addCriterion("left_vision is null");
            return (Criteria) this;
        }

        public Criteria andLeft_visionIsNotNull() {
            addCriterion("left_vision is not null");
            return (Criteria) this;
        }

        public Criteria andLeft_visionEqualTo(String value) {
            addCriterion("left_vision =", value, "left_vision");
            return (Criteria) this;
        }

        public Criteria andLeft_visionNotEqualTo(String value) {
            addCriterion("left_vision <>", value, "left_vision");
            return (Criteria) this;
        }

        public Criteria andLeft_visionGreaterThan(String value) {
            addCriterion("left_vision >", value, "left_vision");
            return (Criteria) this;
        }

        public Criteria andLeft_visionGreaterThanOrEqualTo(String value) {
            addCriterion("left_vision >=", value, "left_vision");
            return (Criteria) this;
        }

        public Criteria andLeft_visionLessThan(String value) {
            addCriterion("left_vision <", value, "left_vision");
            return (Criteria) this;
        }

        public Criteria andLeft_visionLessThanOrEqualTo(String value) {
            addCriterion("left_vision <=", value, "left_vision");
            return (Criteria) this;
        }

        public Criteria andLeft_visionLike(String value) {
            addCriterion("left_vision like", value, "left_vision");
            return (Criteria) this;
        }

        public Criteria andLeft_visionNotLike(String value) {
            addCriterion("left_vision not like", value, "left_vision");
            return (Criteria) this;
        }

        public Criteria andLeft_visionIn(List<String> values) {
            addCriterion("left_vision in", values, "left_vision");
            return (Criteria) this;
        }

        public Criteria andLeft_visionNotIn(List<String> values) {
            addCriterion("left_vision not in", values, "left_vision");
            return (Criteria) this;
        }

        public Criteria andLeft_visionBetween(String value1, String value2) {
            addCriterion("left_vision between", value1, value2, "left_vision");
            return (Criteria) this;
        }

        public Criteria andLeft_visionNotBetween(String value1, String value2) {
            addCriterion("left_vision not between", value1, value2, "left_vision");
            return (Criteria) this;
        }

        public Criteria andRight_visionIsNull() {
            addCriterion("right_vision is null");
            return (Criteria) this;
        }

        public Criteria andRight_visionIsNotNull() {
            addCriterion("right_vision is not null");
            return (Criteria) this;
        }

        public Criteria andRight_visionEqualTo(String value) {
            addCriterion("right_vision =", value, "right_vision");
            return (Criteria) this;
        }

        public Criteria andRight_visionNotEqualTo(String value) {
            addCriterion("right_vision <>", value, "right_vision");
            return (Criteria) this;
        }

        public Criteria andRight_visionGreaterThan(String value) {
            addCriterion("right_vision >", value, "right_vision");
            return (Criteria) this;
        }

        public Criteria andRight_visionGreaterThanOrEqualTo(String value) {
            addCriterion("right_vision >=", value, "right_vision");
            return (Criteria) this;
        }

        public Criteria andRight_visionLessThan(String value) {
            addCriterion("right_vision <", value, "right_vision");
            return (Criteria) this;
        }

        public Criteria andRight_visionLessThanOrEqualTo(String value) {
            addCriterion("right_vision <=", value, "right_vision");
            return (Criteria) this;
        }

        public Criteria andRight_visionLike(String value) {
            addCriterion("right_vision like", value, "right_vision");
            return (Criteria) this;
        }

        public Criteria andRight_visionNotLike(String value) {
            addCriterion("right_vision not like", value, "right_vision");
            return (Criteria) this;
        }

        public Criteria andRight_visionIn(List<String> values) {
            addCriterion("right_vision in", values, "right_vision");
            return (Criteria) this;
        }

        public Criteria andRight_visionNotIn(List<String> values) {
            addCriterion("right_vision not in", values, "right_vision");
            return (Criteria) this;
        }

        public Criteria andRight_visionBetween(String value1, String value2) {
            addCriterion("right_vision between", value1, value2, "right_vision");
            return (Criteria) this;
        }

        public Criteria andRight_visionNotBetween(String value1, String value2) {
            addCriterion("right_vision not between", value1, value2, "right_vision");
            return (Criteria) this;
        }

        public Criteria andWeightIsNull() {
            addCriterion("weight is null");
            return (Criteria) this;
        }

        public Criteria andWeightIsNotNull() {
            addCriterion("weight is not null");
            return (Criteria) this;
        }

        public Criteria andWeightEqualTo(String value) {
            addCriterion("weight =", value, "weight");
            return (Criteria) this;
        }

        public Criteria andWeightNotEqualTo(String value) {
            addCriterion("weight <>", value, "weight");
            return (Criteria) this;
        }

        public Criteria andWeightGreaterThan(String value) {
            addCriterion("weight >", value, "weight");
            return (Criteria) this;
        }

        public Criteria andWeightGreaterThanOrEqualTo(String value) {
            addCriterion("weight >=", value, "weight");
            return (Criteria) this;
        }

        public Criteria andWeightLessThan(String value) {
            addCriterion("weight <", value, "weight");
            return (Criteria) this;
        }

        public Criteria andWeightLessThanOrEqualTo(String value) {
            addCriterion("weight <=", value, "weight");
            return (Criteria) this;
        }

        public Criteria andWeightLike(String value) {
            addCriterion("weight like", value, "weight");
            return (Criteria) this;
        }

        public Criteria andWeightNotLike(String value) {
            addCriterion("weight not like", value, "weight");
            return (Criteria) this;
        }

        public Criteria andWeightIn(List<String> values) {
            addCriterion("weight in", values, "weight");
            return (Criteria) this;
        }

        public Criteria andWeightNotIn(List<String> values) {
            addCriterion("weight not in", values, "weight");
            return (Criteria) this;
        }

        public Criteria andWeightBetween(String value1, String value2) {
            addCriterion("weight between", value1, value2, "weight");
            return (Criteria) this;
        }

        public Criteria andWeightNotBetween(String value1, String value2) {
            addCriterion("weight not between", value1, value2, "weight");
            return (Criteria) this;
        }

        public Criteria andHearingIsNull() {
            addCriterion("hearing is null");
            return (Criteria) this;
        }

        public Criteria andHearingIsNotNull() {
            addCriterion("hearing is not null");
            return (Criteria) this;
        }

        public Criteria andHearingEqualTo(String value) {
            addCriterion("hearing =", value, "hearing");
            return (Criteria) this;
        }

        public Criteria andHearingNotEqualTo(String value) {
            addCriterion("hearing <>", value, "hearing");
            return (Criteria) this;
        }

        public Criteria andHearingGreaterThan(String value) {
            addCriterion("hearing >", value, "hearing");
            return (Criteria) this;
        }

        public Criteria andHearingGreaterThanOrEqualTo(String value) {
            addCriterion("hearing >=", value, "hearing");
            return (Criteria) this;
        }

        public Criteria andHearingLessThan(String value) {
            addCriterion("hearing <", value, "hearing");
            return (Criteria) this;
        }

        public Criteria andHearingLessThanOrEqualTo(String value) {
            addCriterion("hearing <=", value, "hearing");
            return (Criteria) this;
        }

        public Criteria andHearingLike(String value) {
            addCriterion("hearing like", value, "hearing");
            return (Criteria) this;
        }

        public Criteria andHearingNotLike(String value) {
            addCriterion("hearing not like", value, "hearing");
            return (Criteria) this;
        }

        public Criteria andHearingIn(List<String> values) {
            addCriterion("hearing in", values, "hearing");
            return (Criteria) this;
        }

        public Criteria andHearingNotIn(List<String> values) {
            addCriterion("hearing not in", values, "hearing");
            return (Criteria) this;
        }

        public Criteria andHearingBetween(String value1, String value2) {
            addCriterion("hearing between", value1, value2, "hearing");
            return (Criteria) this;
        }

        public Criteria andHearingNotBetween(String value1, String value2) {
            addCriterion("hearing not between", value1, value2, "hearing");
            return (Criteria) this;
        }

        public Criteria andIsdisabilitiesIsNull() {
            addCriterion("isdisabilities is null");
            return (Criteria) this;
        }

        public Criteria andIsdisabilitiesIsNotNull() {
            addCriterion("isdisabilities is not null");
            return (Criteria) this;
        }

        public Criteria andIsdisabilitiesEqualTo(String value) {
            addCriterion("isdisabilities =", value, "isdisabilities");
            return (Criteria) this;
        }

        public Criteria andIsdisabilitiesNotEqualTo(String value) {
            addCriterion("isdisabilities <>", value, "isdisabilities");
            return (Criteria) this;
        }

        public Criteria andIsdisabilitiesGreaterThan(String value) {
            addCriterion("isdisabilities >", value, "isdisabilities");
            return (Criteria) this;
        }

        public Criteria andIsdisabilitiesGreaterThanOrEqualTo(String value) {
            addCriterion("isdisabilities >=", value, "isdisabilities");
            return (Criteria) this;
        }

        public Criteria andIsdisabilitiesLessThan(String value) {
            addCriterion("isdisabilities <", value, "isdisabilities");
            return (Criteria) this;
        }

        public Criteria andIsdisabilitiesLessThanOrEqualTo(String value) {
            addCriterion("isdisabilities <=", value, "isdisabilities");
            return (Criteria) this;
        }

        public Criteria andIsdisabilitiesLike(String value) {
            addCriterion("isdisabilities like", value, "isdisabilities");
            return (Criteria) this;
        }

        public Criteria andIsdisabilitiesNotLike(String value) {
            addCriterion("isdisabilities not like", value, "isdisabilities");
            return (Criteria) this;
        }

        public Criteria andIsdisabilitiesIn(List<String> values) {
            addCriterion("isdisabilities in", values, "isdisabilities");
            return (Criteria) this;
        }

        public Criteria andIsdisabilitiesNotIn(List<String> values) {
            addCriterion("isdisabilities not in", values, "isdisabilities");
            return (Criteria) this;
        }

        public Criteria andIsdisabilitiesBetween(String value1, String value2) {
            addCriterion("isdisabilities between", value1, value2, "isdisabilities");
            return (Criteria) this;
        }

        public Criteria andIsdisabilitiesNotBetween(String value1, String value2) {
            addCriterion("isdisabilities not between", value1, value2, "isdisabilities");
            return (Criteria) this;
        }

        public Criteria andOccupationalIsNull() {
            addCriterion("occupational is null");
            return (Criteria) this;
        }

        public Criteria andOccupationalIsNotNull() {
            addCriterion("occupational is not null");
            return (Criteria) this;
        }

        public Criteria andOccupationalEqualTo(String value) {
            addCriterion("occupational =", value, "occupational");
            return (Criteria) this;
        }

        public Criteria andOccupationalNotEqualTo(String value) {
            addCriterion("occupational <>", value, "occupational");
            return (Criteria) this;
        }

        public Criteria andOccupationalGreaterThan(String value) {
            addCriterion("occupational >", value, "occupational");
            return (Criteria) this;
        }

        public Criteria andOccupationalGreaterThanOrEqualTo(String value) {
            addCriterion("occupational >=", value, "occupational");
            return (Criteria) this;
        }

        public Criteria andOccupationalLessThan(String value) {
            addCriterion("occupational <", value, "occupational");
            return (Criteria) this;
        }

        public Criteria andOccupationalLessThanOrEqualTo(String value) {
            addCriterion("occupational <=", value, "occupational");
            return (Criteria) this;
        }

        public Criteria andOccupationalLike(String value) {
            addCriterion("occupational like", value, "occupational");
            return (Criteria) this;
        }

        public Criteria andOccupationalNotLike(String value) {
            addCriterion("occupational not like", value, "occupational");
            return (Criteria) this;
        }

        public Criteria andOccupationalIn(List<String> values) {
            addCriterion("occupational in", values, "occupational");
            return (Criteria) this;
        }

        public Criteria andOccupationalNotIn(List<String> values) {
            addCriterion("occupational not in", values, "occupational");
            return (Criteria) this;
        }

        public Criteria andOccupationalBetween(String value1, String value2) {
            addCriterion("occupational between", value1, value2, "occupational");
            return (Criteria) this;
        }

        public Criteria andOccupationalNotBetween(String value1, String value2) {
            addCriterion("occupational not between", value1, value2, "occupational");
            return (Criteria) this;
        }

        public Criteria andOperatorIsNull() {
            addCriterion("operator is null");
            return (Criteria) this;
        }

        public Criteria andOperatorIsNotNull() {
            addCriterion("operator is not null");
            return (Criteria) this;
        }

        public Criteria andOperatorEqualTo(Long value) {
            addCriterion("operator =", value, "operator");
            return (Criteria) this;
        }

        public Criteria andOperatorNotEqualTo(Long value) {
            addCriterion("operator <>", value, "operator");
            return (Criteria) this;
        }

        public Criteria andOperatorGreaterThan(Long value) {
            addCriterion("operator >", value, "operator");
            return (Criteria) this;
        }

        public Criteria andOperatorGreaterThanOrEqualTo(Long value) {
            addCriterion("operator >=", value, "operator");
            return (Criteria) this;
        }

        public Criteria andOperatorLessThan(Long value) {
            addCriterion("operator <", value, "operator");
            return (Criteria) this;
        }

        public Criteria andOperatorLessThanOrEqualTo(Long value) {
            addCriterion("operator <=", value, "operator");
            return (Criteria) this;
        }

        public Criteria andOperatorIn(List<Long> values) {
            addCriterion("operator in", values, "operator");
            return (Criteria) this;
        }

        public Criteria andOperatorNotIn(List<Long> values) {
            addCriterion("operator not in", values, "operator");
            return (Criteria) this;
        }

        public Criteria andOperatorBetween(Long value1, Long value2) {
            addCriterion("operator between", value1, value2, "operator");
            return (Criteria) this;
        }

        public Criteria andOperatorNotBetween(Long value1, Long value2) {
            addCriterion("operator not between", value1, value2, "operator");
            return (Criteria) this;
        }

        public Criteria andAddtimeIsNull() {
            addCriterion("addtime is null");
            return (Criteria) this;
        }

        public Criteria andAddtimeIsNotNull() {
            addCriterion("addtime is not null");
            return (Criteria) this;
        }

        public Criteria andAddtimeEqualTo(Date value) {
            addCriterion("addtime =", value, "addtime");
            return (Criteria) this;
        }

        public Criteria andAddtimeNotEqualTo(Date value) {
            addCriterion("addtime <>", value, "addtime");
            return (Criteria) this;
        }

        public Criteria andAddtimeGreaterThan(Date value) {
            addCriterion("addtime >", value, "addtime");
            return (Criteria) this;
        }

        public Criteria andAddtimeGreaterThanOrEqualTo(Date value) {
            addCriterion("addtime >=", value, "addtime");
            return (Criteria) this;
        }

        public Criteria andAddtimeLessThan(Date value) {
            addCriterion("addtime <", value, "addtime");
            return (Criteria) this;
        }

        public Criteria andAddtimeLessThanOrEqualTo(Date value) {
            addCriterion("addtime <=", value, "addtime");
            return (Criteria) this;
        }

        public Criteria andAddtimeIn(List<Date> values) {
            addCriterion("addtime in", values, "addtime");
            return (Criteria) this;
        }

        public Criteria andAddtimeNotIn(List<Date> values) {
            addCriterion("addtime not in", values, "addtime");
            return (Criteria) this;
        }

        public Criteria andAddtimeBetween(Date value1, Date value2) {
            addCriterion("addtime between", value1, value2, "addtime");
            return (Criteria) this;
        }

        public Criteria andAddtimeNotBetween(Date value1, Date value2) {
            addCriterion("addtime not between", value1, value2, "addtime");
            return (Criteria) this;
        }

        public Criteria andUpdaterIsNull() {
            addCriterion("updater is null");
            return (Criteria) this;
        }

        public Criteria andUpdaterIsNotNull() {
            addCriterion("updater is not null");
            return (Criteria) this;
        }

        public Criteria andUpdaterEqualTo(Long value) {
            addCriterion("updater =", value, "updater");
            return (Criteria) this;
        }

        public Criteria andUpdaterNotEqualTo(Long value) {
            addCriterion("updater <>", value, "updater");
            return (Criteria) this;
        }

        public Criteria andUpdaterGreaterThan(Long value) {
            addCriterion("updater >", value, "updater");
            return (Criteria) this;
        }

        public Criteria andUpdaterGreaterThanOrEqualTo(Long value) {
            addCriterion("updater >=", value, "updater");
            return (Criteria) this;
        }

        public Criteria andUpdaterLessThan(Long value) {
            addCriterion("updater <", value, "updater");
            return (Criteria) this;
        }

        public Criteria andUpdaterLessThanOrEqualTo(Long value) {
            addCriterion("updater <=", value, "updater");
            return (Criteria) this;
        }

        public Criteria andUpdaterIn(List<Long> values) {
            addCriterion("updater in", values, "updater");
            return (Criteria) this;
        }

        public Criteria andUpdaterNotIn(List<Long> values) {
            addCriterion("updater not in", values, "updater");
            return (Criteria) this;
        }

        public Criteria andUpdaterBetween(Long value1, Long value2) {
            addCriterion("updater between", value1, value2, "updater");
            return (Criteria) this;
        }

        public Criteria andUpdaterNotBetween(Long value1, Long value2) {
            addCriterion("updater not between", value1, value2, "updater");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeIsNull() {
            addCriterion("updatetime is null");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeIsNotNull() {
            addCriterion("updatetime is not null");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeEqualTo(Date value) {
            addCriterion("updatetime =", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeNotEqualTo(Date value) {
            addCriterion("updatetime <>", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeGreaterThan(Date value) {
            addCriterion("updatetime >", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeGreaterThanOrEqualTo(Date value) {
            addCriterion("updatetime >=", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeLessThan(Date value) {
            addCriterion("updatetime <", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeLessThanOrEqualTo(Date value) {
            addCriterion("updatetime <=", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeIn(List<Date> values) {
            addCriterion("updatetime in", values, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeNotIn(List<Date> values) {
            addCriterion("updatetime not in", values, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeBetween(Date value1, Date value2) {
            addCriterion("updatetime between", value1, value2, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeNotBetween(Date value1, Date value2) {
            addCriterion("updatetime not between", value1, value2, "updatetime");
            return (Criteria) this;
        }

        public Criteria andBeam_idIsNull() {
            addCriterion("beam_id is null");
            return (Criteria) this;
        }

        public Criteria andBeam_idIsNotNull() {
            addCriterion("beam_id is not null");
            return (Criteria) this;
        }

        public Criteria andBeam_idEqualTo(Long value) {
            addCriterion("beam_id =", value, "beam_id");
            return (Criteria) this;
        }

        public Criteria andBeam_idNotEqualTo(Long value) {
            addCriterion("beam_id <>", value, "beam_id");
            return (Criteria) this;
        }

        public Criteria andBeam_idGreaterThan(Long value) {
            addCriterion("beam_id >", value, "beam_id");
            return (Criteria) this;
        }

        public Criteria andBeam_idGreaterThanOrEqualTo(Long value) {
            addCriterion("beam_id >=", value, "beam_id");
            return (Criteria) this;
        }

        public Criteria andBeam_idLessThan(Long value) {
            addCriterion("beam_id <", value, "beam_id");
            return (Criteria) this;
        }

        public Criteria andBeam_idLessThanOrEqualTo(Long value) {
            addCriterion("beam_id <=", value, "beam_id");
            return (Criteria) this;
        }

        public Criteria andBeam_idIn(List<Long> values) {
            addCriterion("beam_id in", values, "beam_id");
            return (Criteria) this;
        }

        public Criteria andBeam_idNotIn(List<Long> values) {
            addCriterion("beam_id not in", values, "beam_id");
            return (Criteria) this;
        }

        public Criteria andBeam_idBetween(Long value1, Long value2) {
            addCriterion("beam_id between", value1, value2, "beam_id");
            return (Criteria) this;
        }

        public Criteria andBeam_idNotBetween(Long value1, Long value2) {
            addCriterion("beam_id not between", value1, value2, "beam_id");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}